SET QUOTED_IDENTIFIER ON
GO
SET ANSI_NULLS ON
GO
CREATE VIEW dbo.vwbAgentesConAportesMinimo
AS
SELECT     dbo.tb_Agentes.Documento
FROM         dbo.tb_AgentesConAportesMinimo INNER JOIN
                      dbo.tb_Agentes ON dbo.tb_AgentesConAportesMinimo.Agente = dbo.tb_Agentes.idAgente
GO
GRANT SELECT ON  [dbo].[vwbAgentesConAportesMinimo] TO [CentroDeDesignaciones]
GRANT SELECT ON  [dbo].[vwbAgentesConAportesMinimo] TO [PersonalDocente]
GRANT SELECT ON  [dbo].[vwbAgentesConAportesMinimo] TO [SoloVer]
GRANT SELECT ON  [dbo].[vwbAgentesConAportesMinimo] TO [Subsidios]
GRANT SELECT ON  [dbo].[vwbAgentesConAportesMinimo] TO [SubsidiosConsulta]
GO
